package com.anlen.call.service;

import android.app.Service;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.IBinder;
/*
 
 * */
public class MusicService extends Service {
	private MediaPlayer mediaPlayer;
	@Override
	public IBinder onBind(Intent intent) {
		return null;
	}
	@Override
	public boolean onUnbind(Intent intent) {
		return super.onUnbind(intent);
	}
	@Override
	@Deprecated
	public void onStart(Intent intent, int startId) {
		// TODO Auto-generated method stub
		super.onStart(intent, startId);
		if(mediaPlayer == null){
			mediaPlayer = MediaPlayer.create(this,com.anlen.call.R.raw.aigegou);
			mediaPlayer.setLooping(true);
			mediaPlayer.start();
		}
	}
	@Override
	public void onCreate() {
		super.onCreate();
	}
	@Override
	public void onDestroy() {
		super.onDestroy();
	}
}
